
const dict = {

    state: {
        dictInfo: {},//下拉信息
        dictTextInfo:{}
    },
    mutations: {
        SET_DICT_INFO: (state, dictInfo) => {
            state.dictInfo[dictInfo.dictCode] = dictInfo
        },
        SET_DICT_TEXT_INFO(state,dictText){
            state.dictTextInfo[dictText.key]=dictText.val
        }
    },
    actions:{
        setDictInfo({ commit },dictInfo){
            commit('SET_DICT_INFO',dictInfo) 
        },
        setDictTextInfo({commit},dictText){
            commit('SET_DICT_TEXT_INFO',dictText)
        }
    }
}

export default dict